<?php

class Admin_Form_Newconfig extends Zend_Form {

    public function init() {
        parent::init();
        $this->initFields();
    }

    public function initFields() {
        $elements = array();

        $smtp_host = new Zend_Form_Element_Text(SMTP_HOST);
        $smtp_host->setRequired(true);
        $elements[] = $smtp_host;

        $smtp_port = new Zend_Form_Element_Text(SMTP_PORT);
        $smtp_port->setRequired(true);
        $elements[] = $smtp_port;

        $smtp_user = new Zend_Form_Element_Text(SMTP_USER);
        $smtp_user->setRequired(true);
        $elements[] = $smtp_user;

        $smtp_password = new Zend_Form_Element_Text(SMTP_PASSWORD);
        $smtp_password->setRequired(true);
        $elements[] = $smtp_password;
        $this->addElements($elements);
    }

}

?>
